package scsc.web.oa.news.forms;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

import scsc.web.oa.news.data.NewsClassData;
import scsc.web.system.AppActionForm;


public class NewsClassForm extends AppActionForm{

  private NewsClassData newsClassData;
  private NewsClassData conditionData;

  public NewsClassForm() {
    super();
    newsClassData=new NewsClassData();
    conditionData=new NewsClassData();
  }

  public void reset(ActionMapping mapping,HttpServletRequest request){
    super.reset(mapping,request);
    newsClassData.reset();
    conditionData.reset();
  }

  public ActionErrors validate(
      ActionMapping mapping,
      HttpServletRequest request){
    ActionErrors errors=new ActionErrors();
    return errors;
  }

  public void setNewsClassData(NewsClassData newsClassData){
    this.newsClassData=newsClassData;
  }

  public NewsClassData getNewsClassData(){
    return newsClassData;
  }

  public void setConditionData(NewsClassData conditionData){
    this.conditionData=conditionData;
  }

  public NewsClassData getConditionData(){
    return conditionData;
  }
}
